﻿using System;
using XSTDZ.ERP.Application.DataContracts;
using System.Collections.Generic;
using XSTDZ.ERP.Domain.Models;

namespace XSTDZ.ERP.Application
{
    /// <summary>
    /// 库存服务
    /// </summary>
    public interface IStockService
    {
        /// <summary>
        /// 更新单个库存明细数据
        /// </summary>
        /// <param name="stockDto"></param>
        void UpdateStock(StockDto stockDto);
        /// <summary>
        /// 更新多个库存明细数据
        /// </summary>
        /// <param name="stockDtos"></param>
        void UpdateStock(IEnumerable<StockDto> stockDtos);
        /// <summary>
        /// 添加空库存（主要是新厂、老厂不存在库存）
        /// </summary>
        /// <param name="stockDtos"></param>
        IList<StockDto> AddStockEmpty(IEnumerable<StockDto> stockDtos);

        /// <summary>
        /// 获取库存数据
        /// </summary>
        /// <returns></returns>
        IEnumerable<StockDto> GetStocks();

        IEnumerable<StockDto> GetStocksByIds(IEnumerable<Guid> stockIds);
    }
}
